package cn.zwy.实战;

import java.util.HashMap;
import java.util.Map;

import cn.zwy.service.UserServiceImpl;

public class TOProxy extends UserServiceImpl{

    public TOProxy() {
        super();
    }
    
    public void addUser(String name, String email) {
        Map<String, Object> params = new HashMap<>();
        params.put("name", name);
        params.put("email", email);
        AOPAspect.before(params);
        System.out.println("添加用户");
        AOPAspect.after(params);
    }
}
